package org.accp.pojo;

import java.sql.Timestamp;

public class Result {
    private Integer rid;
    private Integer cid;
    private String resinfo;
    private String usere;
    private Timestamp operDate;

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getResinfo() {
        return resinfo;
    }

    public void setResinfo(String resinfo) {
        this.resinfo = resinfo;
    }

    public String getUsere() {
        return usere;
    }

    public void setUsere(String usere) {
        this.usere = usere;
    }

    public Timestamp getOperDate() {
        return operDate;
    }

    public void setOperDate(Timestamp operDate) {
        this.operDate = operDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Result result = (Result) o;

        if (rid != result.rid) return false;
        if (cid != null ? !cid.equals(result.cid) : result.cid != null) return false;
        if (resinfo != null ? !resinfo.equals(result.resinfo) : result.resinfo != null) return false;
        if (usere != null ? !usere.equals(result.usere) : result.usere != null) return false;
        if (operDate != null ? !operDate.equals(result.operDate) : result.operDate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = rid;
        result = 31 * result + (cid != null ? cid.hashCode() : 0);
        result = 31 * result + (resinfo != null ? resinfo.hashCode() : 0);
        result = 31 * result + (usere != null ? usere.hashCode() : 0);
        result = 31 * result + (operDate != null ? operDate.hashCode() : 0);
        return result;
    }
}
